<template>
	<div class="app-container">
		<el-form :model="queryParams" ref="queryRef" :inline="true" label-width="120px" v-show="showSearch">
			<el-form-item label="数据级别" prop="sourceFlag">
				<el-select v-model="queryParams.sourceFlag" placeholder="请选择" clearable>
					<el-option v-for="item in [{ value: 2, label: '国家级' }, { value: 1, label: '省级' }]" :key="item.value" :label="item.label" :value="item.value">
					</el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="版本号" prop="versionNumber">
				<el-input v-model="queryParams.versionNumber" placeholder="请输入版本号" clearable />
			</el-form-item>

			<el-form-item label="省" prop="provinceId">
				<el-select v-model="queryParams.provinceId" placeholder="请选择省" @change="chooseProvince" clearable>
					<el-option v-for="item in provinceData" :key="item.id" :label="item.name" :value="item.id">
					</el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="市" prop="cityId">
				<el-select v-model="queryParams.cityId" placeholder="请选择市" @change="chooseCity" clearable>
					<el-option v-for="item in cityData" :key="item.id" :label="item.name" :value="item.id">
					</el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="区/县" prop="countyId">
				<el-select v-model="queryParams.countyId" placeholder="请选择区/县" clearable>
					<el-option v-for="item in areaData" :key="item.id" :label="item.name" :value="item.id">
					</el-option>
				</el-select>
			</el-form-item>

			<el-form-item style="margin-left: 40px;">
				<el-button type="primary" @click="handleQuery">查询</el-button>
				<el-button @click="resetQuery">重置</el-button>
				<el-button type="primary" icon="Edit"  @click="handleExport">导出</el-button>
			</el-form-item>
		</el-form>
		<!--<el-row :gutter="10" class="mb8">
			<el-col :span="1.5">
				<el-button type="primary" icon="Plus" @click="handleAdd">添加</el-button>
			</el-col>

		</el-row>-->

		<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">

			<el-table-column type="selection" width="55" align="center" :reserve-selection="true" />
			<el-table-column label="钻孔综合编号" align="center" prop="drillSynthesizeCode" />
			<el-table-column label="钻孔依托的项目报告" align="center" prop="drillDependProject" />
			<el-table-column label="项目完成单位" align="center" prop="projectCompleteInstitution" />
			<el-table-column label="项目完成时间" align="center" prop="projectCompleteDate" />
			<el-table-column label="钻孔所在省级行政区" align="center" prop="province" />
			<el-table-column label="钻孔所在地市级行政区" align="center" prop="city" />
			<el-table-column label="钻孔所在县级行政区" align="center" prop="district" />
			<el-table-column label="钻孔所在乡级行政区" align="center" prop="village" />
			<el-table-column label="操作" align="center" width="210" class-name="small-padding fixed-width">
				<template #default="scope">
					<el-button type="text" @click="handleView(scope.row)">查看</el-button>
				</template>
			</el-table-column>
		</el-table>

		<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />

		<!-- 查看 -->
		<el-dialog v-model="open" width="1000px" title="查看钻孔数据" append-to-body :show-close="false" :close-on-click-modal="false">
			<p></p>
			<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
				<!--<el-tab-pane label="Y01单孔标准化数据总览" name="Y01">
					<table align="center" style="width: 100%;border-collapse: collapse;">
						<tr>
							<th align="center" colspan="5">文件信息</th>
						</tr>
						<tr>
							<td style="width: 150px;" align="center" valign="middle">序号</td>
							<td align="center" valign="middle">文件形式</td>
							<td align="center" valign="middle">文件内容</td>
							<td align="center" valign="middle">是否存在</td>
							<td align="center" valign="middle">文件名</td>
						</tr>
						<tr>
							<td align="center" valign="middle">1</td>
							<td align="center" valign="middle">Excel文件</td>
							<td align="center" valign="middle">钻孔标准化信息</td>
							<td align="center" valign="middle">{{form.drillStaInfoExist}}</td>
							<td align="center" valign="middle">{{form.drillStaInfoName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">2</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">审查或备案证明截图</td>
							<td align="center" valign="middle">{{form.certiScrExist}}</td>
							<td align="center" valign="middle">{{form.certiScrName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">3</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">钻孔位置图截图</td>
							<td align="center" valign="middle">{{form.drillPosExist}}</td>
							<td align="center" valign="middle">{{form.drillPosName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">4</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">综合柱状图截图</td>
							<td align="center" valign="middle">{{form.comHisExist}}</td>
							<td align="center" valign="middle">{{form.comHisName}}</td>
						</tr>

						<tr>
							<td align="center" valign="middle">5</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">施工照片截图</td>
							<td align="center" valign="middle">{{form.strucPhoExist}}</td>
							<td align="center" valign="middle">{{form.strucPhoName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">6</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">土工试验参数截图</td>
							<td align="center" valign="middle">{{form.geoTeParaExist}}</td>
							<td align="center" valign="middle">{{form.geoTeParaName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">7</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">衰减关系说明截图</td>
							<td align="center" valign="middle">{{form.attRelDesExist}}</td>
							<td align="center" valign="middle">{{form.attRelDesName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">8</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">土层地震反应谱截图</td>
							<td align="center" valign="middle">{{form.soilLayReaExist}}</td>
							<td align="center" valign="middle">{{form.soilLayReaName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">9</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">场地地震动参数规准谱方法截图</td>
							<td align="center" valign="middle">{{form.caliSpeMethExist}}</td>
							<td align="center" valign="middle">{{form.caliSpeMethName}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">10</td>
							<td align="center" valign="middle">图像文件</td>
							<td align="center" valign="middle">场地地震动参数规准谱截图</td>
							<td align="center" valign="middle">{{form.caliSpeExist}}</td>
							<td align="center" valign="middle">{{form.caliSpeName}}</td>
						</tr>
					</table>
					<p></p>
					<table align="center" style="width: 100%;border-collapse: collapse;">
						<tr>
							<th align="center" colspan="5">单孔标准化数据</th>
						</tr>
						<tr>
							<td style="width: 150px;" align="center" valign="middle">序号</td>
							<td align="center" valign="middle">信息页面顺序号</td>
							<td align="center" valign="middle">信息项</td>
							<td align="center" valign="middle">是否存在</td>
							<td align="center" valign="middle">备注</td>
						</tr>
						<tr>
							<td align="center" valign="middle">1</td>
							<td align="center" valign="middle">Y01</td>
							<td align="center" valign="middle">单孔标准化数据总览</td>
							<td align="center" valign="middle">{{form.y01Exist}}</td>
							<td align="center" valign="middle">{{form.y01Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">2</td>
							<td align="center" valign="middle">Y02</td>
							<td align="center" valign="middle">成孔信息</td>
							<td align="center" valign="middle">{{form.y02Exist}}</td>
							<td align="center" valign="middle">{{form.y02Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">3</td>
							<td align="center" valign="middle">Y03</td>
							<td align="center" valign="middle">审查或备案信息</td>
							<td align="center" valign="middle">{{form.y03Exist}}</td>
							<td align="center" valign="middle">{{form.y03Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">4</td>
							<td align="center" valign="middle">Y04</td>
							<td align="center" valign="middle">地层岩性分层</td>
							<td align="center" valign="middle">{{form.y04Exist}}</td>
							<td align="center" valign="middle">{{form.y04Note}}</td>
						</tr>

						<tr>
							<td align="center" valign="middle">5</td>
							<td align="center" valign="middle">Y05</td>
							<td align="center" valign="middle">标贯值</td>
							<td align="center" valign="middle">{{form.y05Exist}}</td>
							<td align="center" valign="middle">{{form.y05Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">6</td>
							<td align="center" valign="middle">Y06</td>
							<td align="center" valign="middle">剪切波实测值</td>
							<td align="center" valign="middle">{{form.y06Exist}}</td>
							<td align="center" valign="middle">{{form.y06Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">7</td>
							<td align="center" valign="middle">Y07</td>
							<td align="center" valign="middle">纵波实测值</td>
							<td align="center" valign="middle">{{form.y07Exist}}</td>
							<td align="center" valign="middle">{{form.y07Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">8</td>
							<td align="center" valign="middle">Y08</td>
							<td align="center" valign="middle">土动力试验参数</td>
							<td align="center" valign="middle">{{form.y08Exist}}</td>
							<td align="center" valign="middle">{{form.y08Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">9</td>
							<td align="center" valign="middle">Y09</td>
							<td align="center" valign="middle">土动力试验参数说明</td>
							<td align="center" valign="middle">{{form.y09Exist}}</td>
							<td align="center" valign="middle">{{form.y09Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">10</td>
							<td align="center" valign="middle">Y10</td>
							<td align="center" valign="middle">土工试验参数</td>
							<td align="center" valign="middle">{{form.y10Exist}}</td>
							<td align="center" valign="middle">{{form.y10Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">11</td>
							<td align="center" valign="middle">Y11</td>
							<td align="center" valign="middle">土工试验参数说明</td>
							<td align="center" valign="middle">{{form.y11Exist}}</td>
							<td align="center" valign="middle">{{form.y11Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">12</td>
							<td align="center" valign="middle">Y12</td>
							<td align="center" valign="middle">钻孔所在场地地震危险性</td>
							<td align="center" valign="middle">{{form.y12Exist}}</td>
							<td align="center" valign="middle">{{form.y12Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">13</td>
							<td align="center" valign="middle">Y13</td>
							<td align="center" valign="middle">基岩反应谱</td>
							<td align="center" valign="middle">{{form.y13Exist}}</td>
							<td align="center" valign="middle">{{form.y13Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">14</td>
							<td align="center" valign="middle">Y14</td>
							<td align="center" valign="middle">人造波包络函数</td>
							<td align="center" valign="middle">{{form.y14Exist}}</td>
							<td align="center" valign="middle">{{form.y14Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">15</td>
							<td align="center" valign="middle">Y15</td>
							<td align="center" valign="middle">土层地震反应计算模型</td>
							<td align="center" valign="middle">{{form.y15Exist}}</td>
							<td align="center" valign="middle">{{form.y15Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">16</td>
							<td align="center" valign="middle">Y16</td>
							<td align="center" valign="middle">土层地震反应规准谱</td>
							<td align="center" valign="middle">{{form.y16Exist}}</td>
							<td align="center" valign="middle">{{form.y16Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">17</td>
							<td align="center" valign="middle">Y17</td>
							<td align="center" valign="middle">场地地震动基本参数</td>
							<td align="center" valign="middle">{{form.y17Exist}}</td>
							<td align="center" valign="middle">{{form.y17Note}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">18</td>
							<td align="center" valign="middle">Y18</td>
							<td align="center" valign="middle">场地类别</td>
							<td align="center" valign="middle">{{form.y18Exist}}</td>
							<td align="center" valign="middle">{{form.y18Note}}</td>
						</tr>
					</table>
				</el-tab-pane>-->
				<el-tab-pane label="Y02成孔信息" name="Y02">
					<el-form ref="ruleForm" :model="formY02" :rules="rules" label-width="150px">
						<el-form-item label="钻孔综合编号" prop="drillSynthesizeCode">
							<el-input v-model="formY02.drillSynthesizeCode" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔依托的项目报告" prop="drillDependProject">
							<el-input v-model="formY02.drillDependProject" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="项目完成单位" prop="projectCompleteInstitution">
							<el-input v-model="formY02.projectCompleteInstitution" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="项目完成时间" prop="projectCompleteDate">
							<el-input v-model="formY02.projectCompleteDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="项目负责人" prop="projectPrincipal">
							<el-input v-model="formY02.projectPrincipal" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔勘察单位" prop="drillConstructionInstitution">
							<el-input v-model="formY02.drillConstructionInstitution" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔勘察负责人" prop="drillConstructionPrincipal">
							<el-input v-model="formY02.drillConstructionPrincipal" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="勘察施工日期" prop="constructionStartDate">
							<el-input v-model="formY02.constructionStartDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="勘察报告日期" prop="constructionReportDate">
							<el-input v-model="formY02.constructionReportDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔编号" prop="drillCode">
							<el-input v-model="formY02.drillCode" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="孔口记录坐标X轴" prop="drillX">
							<el-input v-model="formY02.drillX" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="孔口记录坐标Y轴" prop="drillY">
							<el-input v-model="formY02.drillY" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="孔位经度（°）" prop="longitude">
							<el-input v-model="formY02.longitude" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="孔位纬度（°）" prop="latitude">
							<el-input v-model="formY02.latitude" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔深度（m）" prop="drillDepth">
							<el-input v-model="formY02.drillDepth" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="地面高程（m）" prop="elevation">
							<el-input v-model="formY02.elevation" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="稳定水位深度（m）" prop="stableWaterDepth">
							<el-input v-model="formY02.stableWaterDepth" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="坐标系说明" prop="coordinatesDeclare">
							<el-input v-model="formY02.coordinatesDeclare" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="高程系说明" prop="elevationDeclare">
							<el-input v-model="formY02.elevationDeclare" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔所在省级行政区" prop="province">
							<el-input v-model="formY02.province" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔所在地市级行政区" prop="city">
							<el-input v-model="formY02.city" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔所在县级行政区" prop="district">
							<el-input v-model="formY02.district" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔所在乡级行政区" prop="village">
							<el-input v-model="formY02.village" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="钻孔说明备注" prop="drillRemark">
							<el-input v-model="formY02.drillRemark" placeholder="" clearable />
						</el-form-item>
					</el-form>
				</el-tab-pane>
				<!--<el-tab-pane label="Y03审查或备案信息" name="Y03">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="项目是否经技术审查" prop="isExamination">
							<el-input v-model="form.isExamination" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构名称" prop="examinationName">
							<el-input v-model="form.examinationName" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查通过日期" prop="examinationDate">
							<el-input v-model="form.examinationDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为中国地震局" prop="esZgdzj">
							<el-input v-model="form.esZgdzj" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为省级地震局" prop="isSjdzj">
							<el-input v-model="form.isSjdzj" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为一级第三方机构" prop="is3party1">
							<el-input v-model="form.is3party1" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为二级第三方机构" prop="is3party2">
							<el-input v-model="form.is3party2" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为其他行业主管单位" prop="isCompetentUnit">
							<el-input v-model="form.isCompetentUnit" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="技术审查机构是否为其他机构" prop="isOtherInstitution">
							<el-input v-model="form.isOtherInstitution" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="项目是否经备案" prop="isFilings">
							<el-input v-model="form.isFilings" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构名称" prop="filingsName">
							<el-input v-model="form.filingsName" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案日期" prop="filingsDate">
							<el-input v-model="form.filingsDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为中国地震局" prop="isFilingsZgdzj">
							<el-input v-model="form.isFilingsZgdzj" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为省级地震局" prop="isFilingsSjdzj">
							<el-input v-model="form.isFilingsSjdzj" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为一级第三方机构" prop="isFilings3party1">
							<el-input v-model="form.isFilings3party1" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为二级第三方机构" prop="isFilings3party2">
							<el-input v-model="form.isFilings3party2" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为其他行业主管单位" prop="isFCompetentUnit">
							<el-input v-model="form.isFCompetentUnit" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="成果备案机构是否为其他机构" prop="isFOtherInstitution">
							<el-input v-model="form.isFOtherInstitution" placeholder="" clearable />
						</el-form-item>

					</el-form>
				</el-tab-pane>-->
				<el-tab-pane label="Y04地层岩性分层" name="Y04">
					<el-table v-loading="loading" ref="tableRef" :data="dataListY04" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="地层序号" align="center" prop="assiseNumber" />
						<el-table-column label="地层编号" align="center" prop="assiseCode" />
						<el-table-column label="地层年代" align="center" prop="formationAge" />
						<el-table-column label="时代成因" align="center" prop="causeAge" />
						<el-table-column label="层底深度（m）" align="center" prop="bottomDepth" />
						<el-table-column label="分层厚度（m）" align="center" prop="layerThickness" />
						<el-table-column label="岩土名称" align="center" prop="geotechnicalName" />
						<el-table-column label="岩土特征" align="center" prop="geotechnicalCharacteristics" />
					</el-table>

					<!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
				</el-tab-pane>
				<el-tab-pane label="Y05标贯值" name="Y05">
					<el-table v-loading="loading" ref="tableRef" :data="dataListY05" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="起始标贯深度(m)" align="center" prop="standardStartDepth" />
						<el-table-column label="结束标贯深度(m)" align="center" prop="standardEndDepth" />
						<el-table-column label="标贯值" align="center" prop="standardNumber" />
					</el-table>

					<!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
				</el-tab-pane>
				<el-tab-pane label="Y06剪切波实测值" name="Y06">
					<el-table v-loading="loading" ref="tableRef" :data="dataListY06" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="序号" align="center" prop="code" />
						<el-table-column label="岩土性名称" align="center" prop="geotechnicalDesignation" />
						<el-table-column label="层底深度 (m)" align="center" prop="bottomDepth" />
						<el-table-column label="层厚(m)" align="center" prop="layerThickness" />
						<el-table-column label="剪切波波速V(m/s)" align="center" prop="shearWaveVelocity" />
					</el-table>

					<!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
				</el-tab-pane>
				<!--<el-tab-pane label="Y07纵波实测值" name="Y07">
					<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="序号" align="center" prop="code" />
						<el-table-column label="岩土性名称" align="center" prop="geotechnicalDesignation" />
						<el-table-column label="层底深度 (m)" align="center" prop="bottomDepth" />
						<el-table-column label="层厚(m)" align="center" prop="layerThickness" />
						<el-table-column label="纵波波速V(m/s)" align="center" prop="primaryWaveVelocity" />
					</el-table>

					<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y08土动力试验参数" name="Y08">
					<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="土类序号" align="center" prop="code" />
						<el-table-column label="样品编号" align="center" prop="specimenCode" />
						<el-table-column label="取样深度顶点(m)" align="center" prop="specimenStartDepth" />
						<el-table-column label="取样深度底点(m)" align="center" prop="specimenEndDepth" />
						<el-table-column label="土层名称" align="center" prop="soilName" />
						<el-table-column label="密度(kg/m3)" align="center" prop="naturalDensity" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.05)" align="center" prop="modulusShearStrain005" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.10)" align="center" prop="modulusShearStrain010" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×0.50)" align="center" prop="modulusShearStrain050" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×1.00)" align="center" prop="modulusShearStrain100" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×5.00)" align="center" prop="modulusShearStrain500" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×10.00)" align="center" prop="modulusShearStrain1000" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×50.00)" align="center" prop="modulusShearStrain5000" />
						<el-table-column label="模量比(G/Gmax)剪应变(γ)（10-4×100.00)" align="center" prop="modulusShearStrain10000" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.05)" align="center" prop="dampShearStrain005" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.10)" align="center" prop="dampShearStrain010" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×0.50)" align="center" prop="dampShearStrain050" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×1.00)" align="center" prop="dampShearStrain100" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×5.00)" align="center" prop="dampShearStrain500" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×10.00)" align="center" prop="dampShearStrain1000" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×50.00)" align="center" prop="dampShearStrain5000" />
						<el-table-column label="阻尼比(λ)剪应变(γ)（10-4×100.00)" align="center" prop="dampShearStrain10000" />
					</el-table>

					<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y09土动力试验参数说明" name="Y09">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="完成单位" prop="completedUnit">
							<el-input v-model="form.completedUnit" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="完成日期" prop="completedDate">
							<el-input v-model="form.completedDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="数据来源" prop="dataSources">
							<el-input v-model="form.dataSources" placeholder="" clearable />
						</el-form-item>
					</el-form>
				</el-tab-pane>-->
				<el-tab-pane label="Y10土工试验参数" name="Y10">
					<el-table v-loading="loading" ref="tableRef" :data="dataListY10" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="室内土样编号" align="center" prop="indoorDustCode"></el-table-column>
						<el-table-column label="野外土样编号" align="center" prop="fieldDustCode"></el-table-column>
						<el-table-column label="取土顶部深度" align="center">
							<el-table-column label="m" align="center" prop="indoorTopDepth"></el-table-column>
						</el-table-column>
						<el-table-column label="取土底部深度" align="center">
							<el-table-column label="m" align="center" prop="indoorBottomDepth"></el-table-column>
						</el-table-column>
						<el-table-column label="颗粒百分比%" align="center">
							<el-table-column label="石" align="center">
								<el-table-column label=">20" align="center">
									<el-table-column label="mm" align="center" prop="particleStone20"></el-table-column>
								</el-table-column>
							</el-table-column>
							<el-table-column label="砾" align="center">
								<el-table-column label="20~2" align="center">
									<el-table-column label="mm" align="center" prop="particleGravel2"></el-table-column>
								</el-table-column>
							</el-table-column>
							<el-table-column label="砂粒" align="center">
								<el-table-column label="2~0.5" align="center">
									<el-table-column label="mm" align="center" prop="particleSand05"></el-table-column>
								</el-table-column>
								<el-table-column label="0.5~0.25" align="center">
									<el-table-column label="mm" align="center" prop="particleSand25"></el-table-column>
								</el-table-column>
								<el-table-column label="0.25~0.075" align="center">
									<el-table-column label="mm" align="center" prop="particleSand75"></el-table-column>
								</el-table-column>

							</el-table-column>
							<el-table-column label="粉粒" align="center">
								<el-table-column label="0.075~0.005" align="center">
									<el-table-column label="mm" align="center" prop="particleFarina005"></el-table-column>
								</el-table-column>
							</el-table-column>
							<el-table-column label="粘粒" align="center">
								<el-table-column label="<0.005" align="center">
									<el-table-column label="mm" align="center" prop="particleCosmid005"></el-table-column>
								</el-table-column>
							</el-table-column>

						</el-table-column>
						<el-table-column label="不均匀系数" align="center">
							<el-table-column label="Cu" align="center">
								<el-table-column label="" align="center" prop="nonuniformCoefficient"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="曲率系数" align="center">
							<el-table-column label="Cc" align="center">
								<el-table-column label="" align="center" prop="curvatureCoefficient"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="含水率" align="center">
							<el-table-column label="W" align="center">
								<el-table-column label="%" align="center" prop="moistureContent"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="密度" align="center">
							<el-table-column label="ρ" align="center">
								<el-table-column label="g/cm3" align="center" prop="density"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="干密度" align="center">
							<el-table-column label="ρd" align="center">
								<el-table-column label="g/cm3" align="center" prop="dryDensity"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="比重" align="center">
							<el-table-column label="Gs" align="center">
								<el-table-column label="" align="center" prop="proportion"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="孔隙比" align="center">
							<el-table-column label="e0" align="center">
								<el-table-column label="" align="center" prop="voidRatio"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="饱和度" align="center">
							<el-table-column label="Sr" align="center">
								<el-table-column label="%" align="center" prop="saturation"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="液限" align="center">
							<el-table-column label="WL" align="center">
								<el-table-column label="%" align="center" prop="liquidLimit"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="塑限" align="center">
							<el-table-column label="WP" align="center">
								<el-table-column label="%" align="center" prop="plasticLimit"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="塑性指数" align="center">
							<el-table-column label="WP" align="center">
								<el-table-column label="" align="center" prop="plasticityIndex"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="液性指数" align="center">
							<el-table-column label="IL" align="center">
								<el-table-column label="" align="center" prop="liquidityIndex"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="压缩系数" align="center">
							<el-table-column label="0.1-0.2" align="center">
								<el-table-column label="MPa-1" align="center" prop="compressibilityFactor02"></el-table-column>
							</el-table-column>
							<el-table-column label="0.2-0.3" align="center">
								<el-table-column label="MPa-1" align="center" prop="compressibilityFactor03"></el-table-column>
							</el-table-column>
							<el-table-column label="0.3-0.4" align="center">
								<el-table-column label="MPa-1" align="center" prop="compressibilityFactor04"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="压缩模量" align="center">
							<el-table-column label="0.1-0.2" align="center">
								<el-table-column label="MPa" align="center" prop="compressiveModulus02"></el-table-column>
							</el-table-column>
							<el-table-column label="0.2-0.3" align="center">
								<el-table-column label="MPa" align="center" prop="compressiveModulus03"></el-table-column>
							</el-table-column>
							<el-table-column label="0.3-0.4" align="center">
								<el-table-column label="MPa" align="center" prop="compressiveModulus04"></el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="快剪" align="center">
							<el-table-column label="粘聚力" align="center">
								<el-table-column label="Cq" align="center">
									<el-table-column label="kPa" align="center" prop="fastShearCohesion"></el-table-column>
								</el-table-column>
							</el-table-column>
							<el-table-column label="内摩擦角" align="center">
								<el-table-column label="Фq" align="center">
									<el-table-column label="度" align="center" prop="fastShearFriction"></el-table-column>
								</el-table-column>
							</el-table-column>
						</el-table-column>
						<el-table-column label="岩土分类" align="center" prop="geotechnicalClassification"></el-table-column>
					</el-table>

					<!--<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />-->
				</el-tab-pane>
				<!--<el-tab-pane label="Y11土工试验参数说明" name="Y11">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="完成单位" prop="completedUnit">
							<el-input v-model="form.completedUnit" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="完成时间" prop="completedDate">
							<el-input v-model="form.completedDate" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="数据来源" prop="dataSources">
							<el-input v-model="form.dataSources" placeholder="" clearable />
						</el-form-item>
					</el-form>
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y12钻孔所在场地地震危险性" name="Y12">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="数据来源" prop="dataSources">
							<el-input v-model="form.dataSources" type="textarea" maxlength="500" show-word-limit :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入数据来源" />
						</el-form-item>
						<el-form-item label="潜在震源区划分方案基础" prop="qzzyqhffajc">
							<el-input v-model="form.qzzyqhffajc" type="textarea" maxlength="500" show-word-limit :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入潜在震源区划分方案基础" />
						</el-form-item>
						<el-form-item label="对基础方案的修订说明" prop="djcfadxdsm">
							<el-input v-model="form.djcfadxdsm" type="textarea" maxlength="500" show-word-limit :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入对基础方案的修订说明" />
						</el-form-item>
						<el-form-item label="衰减关系方案基础" prop="sjgxfajc">
							<el-input v-model="form.sjgxfajc" type="textarea" maxlength="500" show-word-limit :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入衰减关系方案基础" />
						</el-form-item>
						<el-form-item label="衰减关系确定方法说明" prop="sjgxqdffsm">
							<el-input v-model="form.sjgxqdffsm" type="textarea" maxlength="500" show-word-limit :autosize="{ minRows: 3, maxRows: 5 }" placeholder="请输入衰减关系确定方法说明" />
						</el-form-item>
					</el-form>
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y13场地基岩反应谱" name="Y13">
					<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="常用概率水准" align="center">
							<el-table-column label="周期（s）" align="center" prop="proLevelCycle"></el-table-column>
							<el-table-column label="50年63%" align="center" prop="year50ProLevel063"></el-table-column>
							<el-table-column label="50年10%" align="center" prop="year50ProLevel010"></el-table-column>
							<el-table-column label="50年5%" align="center" prop="year50ProLevel050"></el-table-column>
							<el-table-column label="50年3%" align="center" prop="year50ProLevel003"></el-table-column>
							<el-table-column label="50年2.5%" align="center" prop="year50ProLevel0025"></el-table-column>
							<el-table-column label="50年2%" align="center" prop="year50ProLevel002"></el-table-column>
							<el-table-column label="50年1%" align="center" prop="year50ProLevel001"></el-table-column>
							<el-table-column label="70年63%" align="center" prop="year70ProLevel063"></el-table-column>
							<el-table-column label="70年10%" align="center" prop="year70ProLevel010"></el-table-column>
							<el-table-column label="70年5%" align="center" prop="year70ProLevel050"></el-table-column>
							<el-table-column label="70年3%" align="center" prop="year70ProLevel003"></el-table-column>
							<el-table-column label="70年2.5%" align="center" prop="year70ProLevel0025"></el-table-column>
							<el-table-column label="70年2%" align="center" prop="year70ProLevel002"></el-table-column>
							<el-table-column label="70年1%" align="center" prop="year70ProLevel001"></el-table-column>
							<el-table-column label="100年63%" align="center" prop="year100ProLevel063"></el-table-column>
							<el-table-column label="100年10%" align="center" prop="year100ProLevel010"></el-table-column>
							<el-table-column label="100年5%" align="center" prop="year100ProLevel050"></el-table-column>
							<el-table-column label="100年3%" align="center" prop="year100ProLevel003"></el-table-column>
							<el-table-column label="100年2.5%" align="center" prop="year100ProLevel0025"></el-table-column>
							<el-table-column label="100年2%" align="center" prop="year100ProLevel002"></el-table-column>
							<el-table-column label="100年1%" align="center" prop="year100ProLevel001"></el-table-column>
						</el-table-column>
						<el-table-column label="其他概率水准" align="center">
							<el-table-column label="" align="center" prop="otherProLevel"></el-table-column>
							
						</el-table-column>
					</el-table>

					<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y14人造波包络函数" name="Y14">
					<table align="center" style="width: 100%;border-collapse: collapse;">

						<tr>
							<td style="width: 150px;" align="center" valign="middle"></td>
							<td align="center" valign="middle">超越概率</td>
							<td align="center" valign="middle">t1 (s)</td>
							<td align="center" valign="middle">t2 (s)</td>
							<td align="center" valign="middle">c</td>
						</tr>
						<tr>
							<td align="center" valign="middle" rowspan="21">常用概率水准</td>
							<td align="center" valign="middle">50年63%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel063}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel063}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel063}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">50年10%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel010}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel010}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel010}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">50年5%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel050}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel050}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel050}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">50年3%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel003}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel003}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel003}}</td>
						</tr>

						<tr>
							<td align="center" valign="middle">50年2.5%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel0025}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">50年2%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel002}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel002}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel002}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">50年1%</td>
							<td align="center" valign="middle">{{form.t1Year50ProLevel001}}</td>
							<td align="center" valign="middle">{{form.t2Year50ProLevel001}}</td>
							<td align="center" valign="middle">{{form.cYear50ProLevel001}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年63%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel063}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel063}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel063}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年10%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel010}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel010}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel010}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年5%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel050}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel050}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel050}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年3%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel003}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel003}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel003}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年2.5%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel0025}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年2%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel002}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel002}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel002}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">70年1%</td>
							<td align="center" valign="middle">{{form.t1Year70ProLevel001}}</td>
							<td align="center" valign="middle">{{form.t2Year70ProLevel001}}</td>
							<td align="center" valign="middle">{{form.cYear70ProLevel001}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年63%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel063}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel063}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel063}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年10%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel010}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel010}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel010}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年5%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel050}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel050}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel050}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年3%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel003}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel003}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel003}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年2.5%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel0025}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel0025}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年2%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel002}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel002}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel002}}</td>
						</tr>
						<tr>
							<td align="center" valign="middle">100年1%</td>
							<td align="center" valign="middle">{{form.t1Year100ProLevel001}}</td>
							<td align="center" valign="middle">{{form.t2Year100ProLevel001}}</td>
							<td align="center" valign="middle">{{form.cYear100ProLevel001}}</td>
						</tr>
						<tr>
							<td style="width: 150px;" align="center" valign="middle" rowspan="2">其他概率水准</td>
							<td align="center" valign="middle">&nbsp;</td>
							<td align="center" valign="middle">{{form.t1OtherProLevel}}</td>
							<td align="center" valign="middle">{{form.t2OtherProLevel}}</td>
							<td align="center" valign="middle">{{form.cOtherProLevel}}</td>
						</tr>
					</table>
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y15土层地震反应计算模型" name="Y15">
					<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="土层序号" align="center" prop="versionTime" />
						<el-table-column label="岩土性质描述" align="center" prop="geotechnicalProperty" />
						<el-table-column label="层厚(m)" align="center" prop="sliceThickness" />
						<el-table-column label="土类序号" align="center" prop="soilTypeNo" />
						<el-table-column label="波速Vs(m/s)" align="center" prop="waveVelocity" />
					</el-table>

					<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y16土层地震反应规准谱" name="Y16">
					<el-table v-loading="loading" ref="tableRef" :data="dataList" stripe @selection-change="handleSelectionChange" row-key="id">
						<el-table-column label="超越概率" align="center" prop="exceedingProbablility" />
						<el-table-column label="Amax(gal)" align="center" prop="amax" />
						<el-table-column label="βmax" align="center" prop="beta" />
						<el-table-column label="αmax" align="center" prop="alfa" />
						<el-table-column label="T1(s)" align="center" prop="t1" />
						<el-table-column label="Tg(s)" align="center" prop="tg" />
						<el-table-column label="T3(s)" align="center" prop="t3" />
						<el-table-column label="γ" align="center" prop="gamma" />
					</el-table>

					<pagination v-show="total > 0" :total="total" v-model:page="queryParams.page" v-model:limit="queryParams.rows" @pagination="getList" />
				</el-tab-pane>-->
				<!--<el-tab-pane label="Y17场地地震动基本参数" name="Y17">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="土层地表地震动峰值加速度(50年10%)(g)" prop="year50GroudAcceleration010">
							<el-input v-model="form.year50GroudAcceleration010" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="土层地表地震动特征周期(50年10%)(s)" prop="year50GroudFeaturesPeriod010">
							<el-input v-model="form.year50GroudFeaturesPeriod010" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="土层地表地震动峰值加速度(50年2%)(g)" prop="year50GroudAcceleration002">
							<el-input v-model="form.year50GroudAcceleration002" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="土层地表地震动特征周期(50年2%)(s)" prop="year50GroudFeaturesPeriod002">
							<el-input v-model="form.year50GroudFeaturesPeriod002" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="土层地表地震动峰值加速度(100年2%)(g)" prop="year100GroudAcceleration002">
							<el-input v-model="form.year100GroudAcceleration002" placeholder="" clearable />
						</el-form-item>
						<el-form-item label="土层地表地震动特征周期(100年2%)(s)" prop="year100GroudFeaturesPeriod002">
							<el-input v-model="form.year100GroudFeaturesPeriod002" placeholder="" clearable />
						</el-form-item>
					</el-form>
				</el-tab-pane>
				<el-tab-pane label="Y18场地类别" name="Y18">
					<el-form ref="ruleForm" :model="form" :rules="rules" label-width="150px">
						<el-form-item label="场地类别" prop="siteType">
							<el-input v-model="form.siteType" placeholder="" clearable />
						</el-form-item>
					</el-form>
				</el-tab-pane>-->
			</el-tabs>

			<template #footer>
				<div class="dialog-footer">
					<!--<el-button type="primary" v-if="form.banben == '保存新版本'" @click="submitForm">保存</el-button>
          <el-button type="primary" v-else @click="overSave">保存</el-button>-->
					<!-- <el-button type="primary" @click="clearForm">清空</el-button> -->
					<el-button @click="closeForm">取消</el-button>
				</div>
			</template>
		</el-dialog>

		<el-dialog v-model="openDoc" width="800px" title="数据说明" append-to-body>
			<p class="mt15"></p>
			<p>数据类别【{{ dataType }}】应上传符合以下字段的shp文件</p>
			<el-table :data="docList" stripe>
				<el-table-column label="序号" align="center" type="index" width="80" />
				<el-table-column label="数据名称" align="center" prop="dataName" />
				<el-table-column label="数据类别" align="center" prop="dataType" />
				<el-table-column label="是否必填" align="center" prop="isMust" />
				<el-table-column label="数据说明" align="center" prop="dataDesc" width="200" show-overflow-tooltip />
			</el-table>
			<template #footer>
				<div class="dialog-footer">
					<el-button type="primary" @click="openDoc = false">关闭</el-button>
				</div>
			</template>
		</el-dialog>

	</div>
</template>

<script setup name="drillHoleData">
	import { getUserId } from '@/utils/auth'
	import { getProvince, getChildArea } from "@/api/system/division";
	import { ElMessageBox } from 'element-plus'
	import { listDrillholedata, getDetail, getDataDoc, getVersionCode } from '@/api/datamanage/drillholedata'
	const {
		proxy
	} = getCurrentInstance();
	const activeName = ref('Y02');
	const router = useRouter();
	const dataList = ref([]);
	const dataListY04 = ref([]);
	const dataListY05 = ref([]);
	const dataListY06 = ref([]);
	const dataListY10 = ref([]);
	const ids = ref([]);
	const loading = ref(false);
	const single = ref(true);
	const multiple = ref(true);
	const total = ref(0);
	const showSearch = ref(true);
	const openDoc = ref(false);
	const optionData = ref([]);
	const optionData1 = ref([]);
	const optionData2 = ref([]);
	const optionData3 = ref([]);
	const provinceData = ref([]); //省
	const cityData = ref([]); //市
	const areaData = ref([]); //区、县
	const provinceFormData = ref([]); //省
	const cityFormData = ref([]); //市
	const areaFormData = ref([]); //区、县
	const provinceFormData1 = ref([]); //省
	const cityFormData1 = ref([]); //市
	const areaFormData1 = ref([]); //区、县
	const open = ref(false);
	const openData = ref(false);
	const docList = ref([]);
	const dataType = ref('');
	const selectData = ref([]);

	const isSpatialData = ref(2);
	const name = ref(null);
	const isHasFile = ref(0);
	const fileType = ref([]);
	const code = ref(null);

	const openMessage = ref(false);
	const tipMsg = ref('');

	const versionCodeList = ref([]);

	const isFirstOpen = ref(true);

	const coverData = ref({});

	const provinceIdCheck = (rule, value, callback) => {
		if(!value && form.value.dataRangeCountry == 2) {
			callback(new Error('请选择省'))
		} else if(value == undefined && form.value.dataRangeCountry == undefined) {
			callback()
		} else {
			callback()
		}
	}

	const data = reactive({
		queryParams: {
			sourceFlag: '',
			page: 1,
			rows: 10,
			versionNumber: '',
			provinceId: '',
			cityId: '',
			countyId: '',
		},
		form:{},
		formY02: {
			
		},
		formY04: {
			
		},
		formY05: {
			
		},
		formY06: {
			
		},
		formY10: {
			
		},
		formData: {
			dataScope: '1',
			type: '1',
		},
		rules: {
			dataRangeCountry: [{
				required: true,
				message: "范围不能为空",
				trigger: "change"
			}],
			provinceId: [{
				message: "省不能为空",
				trigger: "change",
				validator: provinceIdCheck
			}],
			dataType: [{
				required: true,
				message: "数据类别不能为空",
				trigger: "change"
			}],
			dataType2: [{
				required: true,
				message: "子数据类别不能为空",
				trigger: "change"
			}],
			dataName: [{
				required: true,
				message: "数据名称不能为空",
				trigger: "blur"
			}],
			dataDesc: [{
				required: true,
				message: "数据说明不能为空",
				trigger: "blur"
			}],
			versionCode: [{
				required: true,
				message: "版本号不能为空",
				trigger: "change"
			}],
			versionTime: [{
				required: true,
				message: "版本日期不能为空",
				trigger: "change"
			}],
			versionDesc: [{
				required: true,
				message: "版本说明不能为空",
				trigger: "blur"
			}],
			updateDesc: [{
				required: true,
				message: "更新说明不能为空",
				trigger: "blur"
			}],
			dataFileIds: [{
				required: true,
				message: "数据文件不能为空",
				trigger: "blur"
			}],
			dataFrom: [{
				required: true,
				message: "数据来源不能为空",
				trigger: "blur"
			}],
			uploadSource: [{
				required: true,
				message: "数据来源不能为空",
				trigger: "blur"
			}],
			spatialDataType: [{
				required: true,
				message: "空间数据类型不能为空",
				trigger: "blur"
			}],
			projectionInfo: [{
				required: true,
				message: "投影信息不能为空",
				trigger: "blur"
			}],
			fieldNum: [{
				required: true,
				message: "字段个数不能为空",
				trigger: "blur"
			}, {
				pattern: /^[1-9]\d*$/,
				message: '请输入大于0的整数！',
				trigger: 'change'
			}],
			fieldEntry: [{
				required: true,
				message: "字段条目不能为空",
				trigger: "blur"
			}, {
				pattern: /^[1-9]\d*$/,
				message: '请输入大于0的整数！',
				trigger: 'change'
			}],
		}
	})
	const {
		queryParams,
		form,
		formY02,
		formY04,
		formY05,
		formY06,
		formY010,
		rules,
		formData
	} = toRefs(data);

	watch(form.value, (value) => {
		// console.log(form.value.dataType2, '子数据');
		if(form.value.dataType2 && form.value.dataType2 != '') {
			optionData3.value.forEach(item => {
				if(item.dictItemId == value.dataType2) {
					isSpatialData.value = item.isSpatialData;
					name.value = item.templateFileName;
					isHasFile.value = item.isHasFile;
					code.value = item.dictItemCode;
					isSpatialData.value == 1 ? fileType.value = [] : fileType.value = ['xlsx', 'xls'];

				}
			})
		} else {
			name.value = null;
			isSpatialData.value = 2;
			isHasFile.value = 0;
			fileType.value = [];
			code.value = null;
		}
	})

	/*切换标签页*/
	function handleClick(tab, event) {
		console.log(tab.props.name);
		if(tab.props.name == "Y02") {
			//upload.url = import.meta.env.VITE_APP_BASE_API + "/result/uploadPrefectureResult"
		} else {
			//upload.url = import.meta.env.VITE_APP_BASE_API + "/result/uploadResult"
		}
	}

	// 确认上传数据文件
	function uploadFile(value) {
		if(value.list) {
			form.value.tempVersionCode = value.tempVersionCode;
			let arr = [];
			value.list.forEach(item => {
				arr.push(item.attachId)
			})
			form.value.dataFileIds = arr.join(',');
		} else {
			form.value.tempVersionCode = null;
			form.value.dataFileIds = '';
		}
	}

	function dels(value) {
		form.value.tempVersionCode = null;
		form.value.dataFileIds = '';
		form.value.dataFileId = [];
	}

	// 去数据视图
	function toView() {
		console.log(ids.value.length);
		const flag = ids.value.length == 1
		if(flag) {
			router.push({
				path: '/essentialData/dataView',
				query: {
					versionCode: selectData.value[0].versionCode,
					typeCode: selectData.value[0].dataTypeLevel3Code
				}
			})
		} else {
			ElMessageBox.alert('请勾选一条版本数据进行查看。', '消息提示', {
				confirmButtonText: '确认',
				type: 'warning'
			})
		}
	}
	// 获取版本号
	function getVersionCodes() {
		getVersionCode('xzqhsj').then(res => {
			versionCodeList.value = res.data;
		})
	}

	// 下载文件
	function handleDownload(row) {
		var query = {
			attachId: row.id,
			name: row.name
		}
		location.href =
			import.meta.env.VITE_APP_BASE_API + "/attachment/downLoadFile?attachId=" + encodeURIComponent(query.attachId);
	}
	// 打开字段说明
	function handleDoc() {
		getDataDoc(form.value.dataType2).then(res => {
			docList.value = res.data.list;
			dataType.value = res.data.name;
			openDoc.value = true;
		}).catch(_ => {
			docList.value = [];
			dataType.value = '';
			openDoc.value = false;
		})
	}
	// 重置数据
	function reset() {
		proxy.resetForm("ruleForm");
	}
	//添加
	function handleAdd() {
		open.value = true;
		reset();
		form.value.uploadTime = getNowFormatTime();
		form.value.uploadUser = getUserId();
		form.value.user = localStorage.getItem('userName');
		form.value.tempVersionCode = null;
		form.value.dataFileId = [];
		form.value.attachmentId = [];
	}
	//查看
	function handleView(row) {
		open.value = true;
		getDetail(row.id).then(res => {
			console.log(res.data)
			formY02.value = res.data["2"];
			dataListY04.value = res.data["4"];
			dataListY05.value = res.data["5"];
			dataListY06.value = res.data["6"];
			dataListY10.value = res.data["10"];
			
		})
	}


	function changeBanben(value) {
		form.value.versionCode = '';
		if(value == '覆盖旧版本') {
			form.value.updateDesc = '';
		}
	}
	// 判断后的保存
	function saveData() {
		const query = {
			...form.value,
			dataTypeLevel1Code: 'xzqhsj',
			dataTypeLevel2: form.value.dataType,
			dataTypeLevel3: form.value.dataType2,
		}
		uploadAdministrativeArea(query).then(res => {
			getList();
			openMessage.value = false;
			ElMessageBox.alert(`添加成功，版本号为${res.data}，请完善【元数据信息】。`, '消息', {
				confirmButtonText: '确定',
				showClose: false,
				callback: () => {
					open.value = false;
					isFirstOpen.value = true;
					handleDetail(res.data)
				},
			})
		})
	}
	// 覆盖旧版本
	function oldcOver() {
		openMessage.value = true;
		open.value = true;
		form.value.banben = '覆盖旧版本';
	}


	// 清空
	// function clearForm () {
	//     form.value.dataRangeCountry = '';
	//     form.value.provinceId = '';
	//     form.value.cityId = '';
	//     form.value.countyId = '';
	//     form.value.dataType = '';
	//     form.value.dataType2 = '';
	//     form.value.dataName = '';
	//     form.value.dataDesc = '';
	//     form.value.versionCode = '';
	//     form.value.versionTime = '';
	//     form.value.versionDesc = '';
	//     form.value.updateDesc = '';
	//     form.value.dataFileId = [];
	//     form.value.dataFileIds = '';
	//     form.value.attachmentId = [];
	//     form.value.attachmentIds = '';
	//     proxy.resetForm("ruleForm");
	// }

	// 关闭
	function closeForm() {
		open.value = false;
	}
	// 更多数据
	function handleMore(row) {
		proxy.$refs['tableRef'].toggleRowExpansion(row);
	}

	// 数据详情
	function handleDetail(versionCode) {
		getDetail(versionCode).then(res => {
			formData.value = {
				dataScope: '1',
				type: '1',
				...res.data,
			};
			editProvinceFormData(formData.value.provinceId, formData.value.cityId)
		})
	}

	/** 导出按钮操作 */
	function handleExport() {
		proxy.download('/drill/drillExport', {
    ...queryParams.value
  	},`Excel压缩包导出${new Date().getTime()}.xls`)
	}


	/** 搜索按钮操作 */
	function handleQuery() {
		queryParams.value.page = 1;
		getList();
	}

	/** 重置按钮操作 */
	function resetQuery() {
		queryParams.value = {},
		cityData.value = [];
		areaData.value = [];
		dataList.value = [];
		proxy.resetForm("queryRef");
		handleQuery();
	}

	/** 查询数据列表 */
	function getList() {
		loading.value = true;
		listDrillholedata({ ...queryParams.value
		}).then(response => {
			dataList.value = response.data.list ? response.data.list : [];
			total.value = response.data.total;
			loading.value = false;
		});
	}

	// 多选框选中数据
	function handleSelectionChange(selection) {
		ids.value = selection.map(item => item.id);
		single.value = selection.length != 1;
		multiple.value = !selection.length;
		selectData.value = selection;
	}

	//获取当前日期，格式YYYY-MM-DD
	function getNowFormatTime(nowDate) {
		var char = "-";
		if(nowDate == null) {
			nowDate = new Date();
		}
		var day = nowDate.getDate();
		var month = nowDate.getMonth() + 1; //注意月份需要+1
		var year = nowDate.getFullYear();
		//补全0，并拼接
		return year + char + completeDate(month) + char + completeDate(day);
	}
	//获取当前时间，格式YYYY-MM-DD HH:mm:ss
	// function getNowFormatTime() {
	//     var nowDate = new Date();
	//     var colon = ":";
	//     var h = nowDate.getHours();
	//     var m = nowDate.getMinutes();
	//     var s = nowDate.getSeconds();
	//     //补全0，并拼接
	//     return getNowFormatDay(nowDate) + " " + completeDate(h) + colon + completeDate(m) + colon + completeDate(s);
	// }
	//补全0
	function completeDate(value) {
		return value < 10 ? "0" + value : value;
	}


	function chooseProvince(value) {
		queryParams.value.cityId = null;
		queryParams.value.countyId = null;
		cityData.value = [];
		getChildArea(value).then(response => {
			cityData.value = response.data;
		});
	}

	function chooseCity(value) {
		queryParams.value.countyId = null;
		areaData.value = [];
		getChildArea(value).then((response) => {
			areaData.value = response.data;
		});
	}

	function chooseFormCity(value) {
		form.value.countyId = null;
		areaFormData.value = [];
		getChildArea(value).then((response) => {
			areaFormData.value = response.data;
		});
	}

	function chooseFormProvince(value) {
		form.value.cityId = null;
		form.value.countyId = null;
		cityFormData.value = [];
		getChildArea(value).then(response => {
			cityFormData.value = response.data;
		});
	}

	/** 获取省列表 */
	function getProvinceData() {
		getProvince().then(response => {
			provinceData.value = response.data;
			provinceFormData.value = response.data;
			provinceFormData1.value = response.data;
		});
	}

	function editProvinceFormData(provinceId, cityId) {
		if(!provinceId && !cityId) {
			cityFormData1.value = [];
			areaFormData1.value = [];
		}
		if(provinceId && !cityId) {
			getChildArea(provinceId).then(response => {
				cityFormData1.value = response.data;
				areaFormData1.value = [];
			});
		}
		if(provinceId && cityId) {
			getChildArea(provinceId).then(response => {
				cityFormData1.value = response.data;
			});
			getChildArea(cityId).then(response => {
				areaFormData1.value = response.data;
			});
		}
		openData.value = true;
		proxy.resetForm("ruleFormData");
	}

	//getType();
	getProvinceData();
	getList();
</script>

<style lang="scss" scoped>
	.expandTable {
		padding: 5px 20px 5px 105px;
		h3 {
			font-weight: bold;
		}
		p {
			margin: 0px;
			line-height: 25px !important;
		}
	}
	
	.tab-title {
		font-size: 16px;
		font-weight: bold;
		border-left: 4px solid #0D9AFF;
		font-family: PingFangSC-Medium;
		padding-left: 10px;
		margin-bottom: 20px;
	}
	
	:deep(.el-drawer__header) {
		margin-bottom: 0px !important;
	}
	
	.el-form--inline .el-form-item {
		margin-right: 0px!important;
	}
	
	.spanStyle {
		display: inline-block;
		width: 40px;
		text-align: center;
	}
	
	:deep(.el-table__expand-icon) {
		display: none;
	}
	
	:deep(.el-table thead.is-group th.el-table__cell) {
		border-right: 1px solid #FFFFFF !important;
		border-bottom: 1px solid #FFFFFF !important;
	}
	
	table td {
		border: 1px solid #c6c6c6;
	}
	
	table th {
		border: 1px solid #c6c6c6;
	}
</style>